<?php

namespace App\Models;
use EloquentFilter\Filterable;
use Illuminate\Database\Eloquent\Model;

class UsersCode extends Model
{
    //
    use Filterable; 

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
   
    protected $fillable = [
        'customerNum', 'shopNum', 'shopAccess','shopSecret',
    ];
    //

     //模型关联
    public function merchant()
    {
        return $this->belongsTo(Merchant::class, 'merchant_id', 'id');
    }
}